﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ArticleClass.aspx.cs" Inherits="V5_EShop.Admin.Admin_ArticleClass" MasterPageFile="~/Admin/admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    文章分类管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Nav" runat="server">
    <a href="Admin_ArticleClass.aspx">管理文章分类</a> | <a href="Admin_ArticleClass.aspx?Action=edit">添加文章分类</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Content" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False"
                OnRowCommand="gvList_RowCommand" GridLines="None" CssClass="tablelist tableheader overlist">
                <Columns>
                    <asp:BoundField DataField="ClassID" HeaderText="ID">
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                        <HeaderStyle CssClass="headertext" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="栏目名称">
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container, "DataItem.ClassName")%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="Button1" runat="server" CommandArgument='<%# Bind("ClassID")%>' CommandName="addsub"
                                Text="添加子栏目" />
                            &nbsp;<asp:LinkButton ID="Button2" runat="server" CommandArgument='<%# Bind("ClassID")%>'
                                CommandName="go" Text="修改" />
                            &nbsp;<asp:LinkButton ID="Button3" runat="server" CommandArgument='<%# Bind("ClassID")%>'
                                CommandName="del" Text="删除" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                        <ItemStyle HorizontalAlign="Center" Width="200px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table align="center" border="0" cellpadding="5" cellspacing="1" class="tablelist tableheader">
                <tr>
                    <td colspan="2" class="headertext">
                        <asp:Label ID="lblTitle" runat="server" Text="添加栏目 "></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right">栏目中文名称：
                    </td>
                    <td>
                        <asp:TextBox ID="txtClassName" runat="server" Width="274px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">父级栏目ID：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlParentID" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height: 75px">栏目META关键字：
                    </td>
                    <td>
                        <asp:TextBox ID="txtClassKeywords" runat="server" Height="70px" TextMode="MultiLine"
                            Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">栏目META描述：
                    </td>
                    <td>
                        <asp:TextBox ID="txtClassdescription" runat="server" Height="70px" TextMode="MultiLine"
                            Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">栏目导航说明：
                    </td>
                    <td>
                        <asp:TextBox ID="txtReadMe" runat="server" Height="70px" TextMode="MultiLine" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:HiddenField ID="txtClassID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" Text="保存栏目" OnClick="btnSave_Click" />
                        <input id="Reset1" type="reset" value="重置" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
